<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<div class="panel-heading">
	<h3 class="panel-title">帐号列表</h3>
</div>
<div class="bd clearfix">
	<form id="admin_account_choose_form" action="javascript:queryAdminAccountList(1);">
		<div class="filter-wrap">
			<dl class="clearfix invest-filter">
				<dt>昵称关键词</dt>
				<dd class="clearfix">
					<ul class="col-sm-5">
					<input type="text" class="form-control" name="userName" value="${paramMap.userName}" placeholder="请输入昵称关键词">
					</ul>
				</dd>
			</dl>
		</div>
		<div class="text-center pb20">
			<button class="btn btn-primary">搜索</button>
		</div>
	</form>
</div>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
<table class="table">
	<thead>
		<tr>
			<th width="40%">帐号</th>
			<th width="50%">昵称</th>
			<th width="10%">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="account" items="${dataList}" varStatus="index">
		<tr>
			<td >
				${account.userAccount}
			</td>
			<td>
				${account.userName}
			</td>
			<td><a href="javascript:deleteAccountById('${account.userId}');">删除</a></td>
		</tr>
		</c:forEach>
	</tbody>
</table>
<!-- 分页 -->
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryAdminAccountList" style="text-center"></p:pagination>
<!-- 分页 end -->
</c:when>
<c:otherwise>
	<table class="table">
		<thead>
			<tr>
				<th>帐号</th>
				<th>昵称</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td colspan="3" align="center">
					暂无数据
				</td>
			</tr>
		</tbody>
	</table>
</c:otherwise>
</c:choose>